package com.example.shop.fgo.ui.fragment;


import android.support.v4.app.Fragment;
import android.view.View;
import android.widget.Button;

import com.example.shop.fgo.R;
import com.example.shop.fgo.base.YBaseFragment;
import com.example.shop.fgo.ui.activity.MainActivity;
import com.example.shop.fgo.ui.dialog.DigLogout;

/**
 * A simple {@link Fragment} subclass.
 */
public class QTFragment extends YBaseFragment {
    private Button mBtOtherActivityLogout;
    private DigLogout mDigLogout;



    public QTFragment() {
        // Required empty public constructor
    }
    @Override
    public int setRootView() {
        return R.layout.fragment_qt;
    }

    @Override
    public void initViews() {
        mDigLogout=new DigLogout(mActivitySelf);
        mBtOtherActivityLogout = (Button) findViewById(R.id.bt_other_activity_logout);
        mBtOtherActivityLogout.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                mDigLogout.showDigLogout();
            }
        });
        //跳转登录页面回调
        mDigLogout.setOnLogoutClickListener(new DigLogout.OnLogoutClickListener() {
            @Override
            public void onLogout() {
                goToActivity(MainActivity.class);
            }
        });
    }

    @Override
    public void initDatas() {

    }

    @Override
    protected void firstInit() {

    }
}
